package com.pig4cloud.ila.client.api.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.ila.client.api.entity.Article;
import com.pig4cloud.pig.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pig.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author KonBAI
 * @version 1.0
 * Create by 2020/10/23 00:56
 */
@FeignClient(contextId = "remoteArticleService", value = ServiceNameConstants.CLIENT_SERVICE)
public interface RemoteArticleController {

    /**
     * 分页查询
     *
     * @param page    分页对象
     * @param article 文章管理表
     * @return
     */
    @GetMapping("/page")
    R getArticlePage(Page page, Article article);
}
